feat(UI):Rich text editor supports associated issues#1240
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds rich text editor support for associated issues by implementing a new LinkIssue extension. Users can now reference issues in the editor using a $ prefix syntax, similar to how mentions work with @.
- Adds a new LinkIssue extension for TipTap editor that handles issue references
- Implements UI rendering components for issue links with proper styling
- Updates the mention system to support issue selection and insertion
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
moon/packages/editor/src/note.ts |
Adds LinkIssue extension to the editor configuration |
moon/packages/editor/src/extensions/index.ts |
Exports the new LinkIssue extension |
moon/packages/editor/src/extensions/LinkIssue.ts |
Core implementation of the LinkIssue node extension |
moon/apps/web/styles/prose.css |
Adds CSS styling for issue links |
moon/apps/web/pages/[org]/mr/[id].tsx |
Integrates issue extraction in comment submission |
moon/apps/web/components/SimpleNoteEditor/SimpleNoteContent.tsx |
Adds method to extract linked issues from editor content |
moon/apps/web/components/RichTextRenderer/index.tsx |
Adds LinkIssue to the renderer's node handlers |
moon/apps/web/components/RichTextRenderer/handlers/LinkIssue.tsx |
React component for rendering issue links |
moon/apps/web/components/MrView/MRComment.tsx |
Updates to use note extensions instead of markdown extensions |
moon/apps/web/components/MarkdownEditor/MentionList.tsx |
Updates mention handling to support issue insertion |
benjamin-747
approved these changes
Jul 18, 2025
liuyangjuncong20202570
pushed a commit
to liuyangjuncong20202570/mega
that referenced
this pull request
Jul 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.